# Contributor: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=timblserver
pkgver=1.15
pkgrel=2
pkgdesc="Server part for TiMBL (memory-based learning)"
arch="all"
url="https://github.com/LanguageMachines/timblserver"
license="GPL-3.0-only"
makedepends="libtool ticcutils-dev timbl-dev icu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/timblserver/releases/download/v$pkgver/timblserver-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

check() {
	LD_LIBRARY_PATH="$PWD/src/.libs/" make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="1ff382ee443471c5358c1377f0f61554befbc01130af229f6ad663dc87e23b6f71a942aad9515337d22ab0a8658f17204c3f599dc7244fde931a210f0a9a5683  timblserver-1.15.tar.gz"
